import request from '@/utils/request'

export class BtService {


// 查询档案借阅与归还列表
  static listBt(query) {
    return request({
      url: '/api/archives/bt/list',
      method: 'get',
      params: query
    })
  }

// 查询档案借阅与归还详细
  static getBt(id) {
    return request({
      url: '/api/archives/bt/' + id,
      method: 'get'
    })
  }

// 新增档案借阅与归还
  static addBt(data) {
    return request({
      url: '/api/archives/bt',
      method: 'post',
      data: data
    })
  }

// 修改档案借阅与归还
  static updateBt(data) {
    return request({
      url: '/api/archives/bt',
      method: 'put',
      data: data
    })
  }

// 删除档案借阅与归还
  static delBt(id) {
    return request({
      url: '/api/archives/bt/' + id,
      method: 'delete'
    })
  }

}
